<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <link rel="icon" type="image/png" href="{{ front_end_domain_name }}/static/icons/AiKeTangJiaoXuePingCeXiTong.png">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="EduBot导航控制中心，整合视频分析、图像处理、PPTX思维导图生成及AI对话等功能，为教育工作者提供一站式智能教学辅助平台">
    <meta name="keywords" content="EduBot,教育小助手,课堂行为分析,异常行为检测,教学监测系统,智能视频处理,郑恩赐技术,YOLOv8行为识别,AI教育方案,教学监控平台,实时行为检测,课堂管理系统,深度学习应用,教育大数据分析,智能课堂助手,教学质量评估">
    <title>EduBot - 导航控制中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #03DAC6;
            --primary-hover: #018786;
            --bg-color: #0F172A;
            --text-color: #e2e8f0;
            --danger-color: #CF6679;
            --danger-hover: #B00020;
            --accent-glow: rgba(3, 218, 198, 0.4);
            --card-bg: rgba(15, 23, 42, 0.7);
            --border-radius: 30px;
        }
        
        @font-face {
            font-family: 'Cyberpunk';
            src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
            font-display: swap;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        body {
            font-family: 'Montserrat', 'Cyberpunk', sans-serif;
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(circle at 15% 25%, rgba(30, 58, 138, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(30, 58, 138, 0.15) 0%, transparent 40%);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            overflow-x: hidden;
            overflow-y: auto;
            position: relative;
            padding-top: 20px;
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(90deg, var(--bg-color) 25px, transparent 1%) center,
                linear-gradient(var(--bg-color) 25px, transparent 1%) center,
                rgba(3, 218, 198, 0.1);
            background-size: 26px 26px;
            opacity: 0.2;
            z-index: -1;
            animation: gridMove 20s linear infinite;
        }
        
        @keyframes gridMove {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: 26px 26px;
            }
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 20%, rgba(3, 218, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(3, 218, 198, 0.1) 0%, transparent 50%);
            animation: gradientMove 15s ease infinite;
            z-index: -1;
        }

        @keyframes gradientMove {
            0% {
                background-position: 0% 0%;
            }
            50% {
                background-position: 100% 100%;
            }
            100% {
                background-position: 0% 0%;
            }
        }

        .cyber-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(90deg, var(--primary-color) 1px, transparent 1px) 0 0 / 50px 50px,
                linear-gradient(0deg, var(--primary-color) 1px, transparent 1px) 0 0 / 50px 50px;
            opacity: 0.05;
            z-index: -1;
            animation: cyberGrid 20s linear infinite;
        }

        @keyframes cyberGrid {
            0% {
                transform: perspective(500px) rotateX(60deg) translateY(0);
            }
            100% {
                transform: perspective(500px) rotateX(60deg) translateY(50px);
            }
        }
        
        @keyframes gradientAnimation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 var(--accent-glow); }
            70% { box-shadow: 0 0 0 10px rgba(3, 218, 198, 0); }
            100% { box-shadow: 0 0 0 0 rgba(3, 218, 198, 0); }
        }

        .page-title {
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--primary-color);
            text-shadow: 0 0 15px var(--accent-glow);
            position: relative;
            width: 100%;
            padding-top: 10px;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        }

        .nav-container {
            display: flex;
            flex-direction: column;
            gap: 40px;
            width: 90%;
            max-width: 70%;
            padding: 20px;
            margin: 0 auto;
            margin-top: 5%;
            box-sizing: border-box;
            align-items: center;
            justify-content: center;
            z-index: 2;
            position: relative;
        }

        .button-row {
            display: flex;
            flex-direction: row;
            gap: 40px;
            width: 100%;
            justify-content: center;
        }

        .nav-button {
            background-color: var(--primary-color);
            border: none;
            color: #121212;
            height: 100%;
            min-height: 180px;
            font-size: 28px;
            border-radius: var(--border-radius);
            cursor: pointer;
            text-align: center;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(3, 218, 198, 0.2);
            font-weight: 700;
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 20px;
            backdrop-filter: blur(5px);
            letter-spacing: 1px;
        }

        .nav-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: 0.5s;
        }
        
        .nav-button::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s;
        }

        .nav-button:hover::before {
            left: 100%;
        }
        
        .nav-button:hover::after {
            transform: scaleX(1);
        }

        .nav-button:hover {
            background-color: var(--primary-hover);
            color: white;
            transform: translateY(-8px);
            box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
            animation: pulse 1.5s infinite;
        }
        
        .logout-button {
            background-color: var(--danger-color);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(207, 102, 121, 0.2);
        }
        
        .logout-button:hover {
            background-color: var(--danger-hover);
            box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(207, 102, 121, 0.4);
        }
        
        .nav-button i {
            font-size: 32px;
            margin-right: 12px;
            transition: transform 0.3s ease;
        }
        
        .nav-button:hover i {
            transform: scale(1.2);
        }
        
        @media (max-width: 768px) {
            body {
                padding-top: 15px;
            }
            .nav-container {
                flex-direction: column;
                width: 95%;
                padding: 15px;
                gap: 15px;
                margin: 0 auto;
            }
            .button-row {
                flex-direction: column;
                width: 100%;
                gap: 15px;
            }
            .nav-button {
                width: 100%;
                min-height: 80px;
                font-size: 22px;
                border-radius: 16px;
                padding: 15px;
                margin-bottom: 5px;
            }
            .nav-button i {
                font-size: 26px;
                margin-right: 10px;
            }
            .page-title {
                font-size: 1.8rem;
                margin-bottom: 20px;
                padding-top: 5px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding-top: 10px;
            }
            .nav-container {
                width: 98%;
                padding: 10px;
                gap: 12px;
                margin: 0 auto;
            }
            .button-row {
                gap: 12px;
            }
            .nav-button {
                min-height: 70px;
                font-size: 18px;
                border-radius: 12px;
                padding: 10px;
                margin-bottom: 3px;
            }
            .nav-button i {
                font-size: 20px;
                margin-right: 8px;
            }
            .page-title {
                font-size: 1.5rem;
                margin-bottom: 15px;
                padding-top: 5px;
            }
        }

        @media (max-width: 320px) {
            body {
                padding-top: 5px;
            }
            .nav-container {
                padding: 5px;
                gap: 10px;
                margin: 0 auto;
            }
            .button-row {
                gap: 10px;
            }
            .nav-button {
                min-height: 60px;
                font-size: 16px;
                border-radius: 10px;
                padding: 8px;
                margin-bottom: 2px;
            }
            .nav-button i {
                font-size: 18px;
                margin-right: 6px;
            }
            .page-title {
                font-size: 1.3rem;
                margin-bottom: 12px;
                padding-top: 5px;
            }
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
        }
        
        .modal-content {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            margin: 15% auto;
            padding: 30px;
            border-radius: 15px;
            width: 80%;
            max-width: 400px;
            box-shadow: 0 5px 25px rgba(3, 218, 198, 0.3), 0 0 0 1px rgba(3, 218, 198, 0.2);
            color: #fff;
            text-align: center;
            animation: modalFadeIn 0.3s;
            border: 1px solid rgba(3, 218, 198, 0.3);
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <div class="cyber-grid"></div>
    <h1 class="page-title">EduBot - 导航控制中心</h1>
    <div class="nav-container">
        <div class="button-row">
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/index_page'">
                <i class="fas fa-home"></i> 首页
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/video_processing_page'">
                <i class="fas fa-video"></i> 视频处理
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/image_processing_page'">
                <i class="fas fa-image"></i> 图片处理
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/personal_center_page'">
                <i class="fas fa-user"></i> 个人中心
            </button>
        </div>
        <div class="button-row">
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/ai_chat_page'">
                <i class="fas fa-robot"></i> 小智
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/pptx_generates_mind_maps_page'">
                <i class="fas fa-project-diagram"></i> PPTX思维导图
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/pptx_generates_questions_page'">
                <i class="fas fa-file-powerpoint"></i> PPTX生成题目
            </button>
            <button class="nav-button" onclick="window.location.href='{{ front_end_domain_name }}/pptx_generates_lesson_plans_page'">
                <i class="fas fa-book"></i> PPTX生成教案
            </button>
            <button class="nav-button logout-button" onclick="logout()">
                <i class="fas fa-sign-out-alt"></i> 退出登录
            </button>
        </div>
    </div>

    <div id="comingSoonModal" class="modal">
        <div class="modal-content">
            <p style="margin: 0; padding: 15px 0;">该功能暂未开放</p>
        </div>
    </div>

    <script>
        const frontEndDomain = '{{ front_end_domain_name }}';
        const backEndDomain = '{{ backend_domain_name }}';
        
        document.addEventListener('DOMContentLoaded', async function() {
            const token = localStorage.getItem('token');
            if (!token) {
                window.location.href = frontEndDomain + '/login_register_page';
                return;
            }
            
            try {
                const isValid = await checkToken(backEndDomain, token);
                if (!isValid) {
                    window.location.href = frontEndDomain + '/login_register_page';
                }
            } catch (error) {
                window.location.href = frontEndDomain + '/login_register_page';
            }
        });
        
        function logout() {
            localStorage.removeItem('token');
            window.location.href = frontEndDomain + '/login_register_page';
        }
        
        function showComingSoonModal() {
            const modal = document.getElementById('comingSoonModal');
            modal.style.display = 'block';
            
            setTimeout(() => {
                modal.style.display = 'none';
            }, 2000);
        }
    </script>
    <script src="{{ url_for('static', filename='javascripts/ImageProcessing.js') }}"></script>
    <script src="{{ url_for('static', filename='javascripts/Navigation.js') }}"></script>
</body>
</html>



